-- GENERATED SPELL FOR [Sparktouched Oracle] --


function spell0_28112(pUnit, Event) --@Forked Lightning,n/a--
pUnit:FullCastSpellOnTarget(12549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28112', 2000, 1)
end

function spell1_28112(pUnit, Event) --@Lightning Burst,n/a--
pUnit:FullCastSpellOnTarget(54916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28112', 3000, 1)
end

function Sorts_28112(pUnit, Event)
local choix_sorts_28112 = math.random(0, 1)
if choix_sorts_28112 == 0 then
pUnit:RegisterEvent('spell0_28112', 1, 1)
end
if choix_sorts_28112 == 1 then
pUnit:RegisterEvent('spell1_28112', 1, 1)
end
end

function mob28112_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28112', math.random(1500, 3000), 1)
end

function mob28112_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28112_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28112_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28112, 1, 'mob28112_Action')
RegisterUnitEvent(28112, 2, 'mob28112_Leave')
RegisterUnitEvent(28112, 3, 'mob28112_Kill')
RegisterUnitEvent(28112, 4, 'mob28112_Die')
